<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>上传头像</title>
	<link rel="stylesheet" href="__PUBLIC__/css/uploadhead.css">
</head>
<body>
	<div class="page">
	    <div class="header">头部</div>
		<div class="banner">
			<div class="banner-inner">
				 <div class="logo">
				 	  <a href=""><img src="__PUBLIC__/images/logo.v2.png" alt=""></a>
					  <a href="" class="a-1">我的汇一家</a>
					  <a href="{:U('Index/index')}" class="a-2">返回汇一家首页</a>
				 </div>
				 <ul>
				 	<li>首页<a href=""></a></li>
				 	<li>账户设置</li>
				 	<li>消息</li>
				 </ul>
				 <form action="" method="post">
				 	<input type="text" size="21">
				 	<input type="submit" value="搜索" class="sub">
				 </form>
				 <div class="cart">
                     <a href="">我的购物车</a>
				 </div>
			</div>
		</div>
		<div class="content">
			 <div class="content-left">
			 	 <ul>
			 	  	<li>设置</li>
			 	  	<li><a href="{:U('User/userInfo')}" style="color:red">个人信息</a></li>
			 	  	<li><a href="{:U('User/changepass')}">修改密码</a></li>
			 	  	<li><a href="{:U('User/address')}">收货地址</a></li>
			 	  	<li><a href="">消费记录</a></li>
			 	  </ul>
			 </div>
			 <div class="content-right">
			 	 <div class="min">
				      <ul class="ull">
				      	<li><a href="{:U('User/userInfo')}">基本信息</a></li>
				      	<li><a href="{:U('User/uploadhead')}">头像照片</a></li>
				      </ul>
				      
				      <div>
				          <form action="" method="post" enctype="multipart/form-data" >
				                <div>
				                	<input type="file" name="file" id="file">
				                </div>			       
                                <progress id="progress" min="0" max="100" value="0"></progress>
                                <div class="touxiang">
	                                <notempty name="images['head_img']">
	                                    <img id="bigimg" src="__PUBLIC__/{$images.head_img}" alt="">      
	                                <else/>
	                                     <img id="bigimg" src="__PUBLIC__/images/no-img.jpg" alt="">    
	                                </notempty>
                                </div>
                                <div class="recommend">
                                    <p>推荐头像</p>
                                    <for start="1" end="17">
	                                    <img path="{$i}.jpg" src="__PUBLIC__/images/touxiang/{$i}.jpg" alt="">
	                                </for> 
	                                <input type="hidden" id="hidden" name="path" value="">
                                </div>
                                <input type="submit" value="保存" onclick="return add()">
				          </form>
				      </div>
				 </div>

			 </div>
		</div>
	</div>
	<script src="__PUBLIC__/js/jquery-1.11.3.js"></script>
	<script src="__PUBLIC__/js/uploadhead.js"></script>
</body>
</html>